package com.kehutong.charge.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.coraframework.json.annotation.JSONField;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description: 水电燃气仪表导入
 * @author: jian Ye
 * @create: 2021/8/17
 **/
public class MeterManageImportDTO implements Serializable {
    private static final long serialVersionUID = -1L;


    @JSONField(format="trim")
    @NotNull(message = "仪表编号不能为空")
    @ExcelProperty(value = "仪表编号")
    private String meterNo;

    @JSONField(format="trim")
    @NotNull(message = "仪表类型不能为空")
    @ExcelProperty(value = "仪表类型")
    private String meterTypeName;

    @JSONField(format="trim")
    @NotNull(message = "仪表分类不能为空")
    @ExcelProperty(value = "仪表分类")
    private String meterClassifyName;

    @JSONField(format="trim")
    @NotNull(message = "项目/小区名称不能为空")
    @ExcelProperty(value = "项目/小区名称")
    private String communityName;

    @JSONField(format="trim")
    @NotNull(message = "楼栋不能为空")
    @ExcelProperty(value ="楼栋")
    private String buildName;

    @JSONField(format="trim")
    @ExcelProperty(value ="单元")
    private String unitName;

    @JSONField(format="trim")
    @NotNull(message = "楼层不能为空")
    @ExcelProperty(value ="楼层")
    private String floorName;

    @JSONField(format="trim")
    @NotNull(message = "房号不能为空")
    @ExcelProperty(value ="房号")
    private String houseName;


    @ExcelIgnore
    private Integer index;



    @Override
    public String toString() {
        return "MeterManageImportDTO{" +
                "meterNo='" + meterNo + '\'' +
                ", meterTypeName='" + meterTypeName + '\'' +
                ", meterClassifyName='" + meterClassifyName + '\'' +
                ", communityName='" + communityName + '\'' +
                ", buildName='" + buildName + '\'' +
                ", unitName='" + unitName + '\'' +
                ", floorName='" + floorName + '\'' +
                ", houseName='" + houseName + '\'' +
                ", index=" + index +
                '}';
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getMeterNo() {
        return meterNo;
    }

    public void setMeterNo(String meterNo) {
        this.meterNo = meterNo;
    }

    public String getMeterTypeName() {
        return meterTypeName;
    }

    public void setMeterTypeName(String meterTypeName) {
        this.meterTypeName = meterTypeName;
    }

    public String getMeterClassifyName() {
        return meterClassifyName;
    }

    public void setMeterClassifyName(String meterClassifyName) {
        this.meterClassifyName = meterClassifyName;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getBuildName() {
        return buildName;
    }

    public void setBuildName(String buildName) {
        this.buildName = buildName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getFloorName() {
        return floorName;
    }

    public void setFloorName(String floorName) {
        this.floorName = floorName;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }
}
